/*************************************************************************
	> File Name: TestScanner.java
	> Author: 
	> Mail: 
	> Created Time: 2018年03月18日 星期日 20时01分15秒
 ************************************************************************/
import java.util.Scanner;
public class TestScanner{
    public static void main(String []args){
       String name, number, message;
       int age; 
       double temp1,temp2,temp3;

       Scanner scan = new Scanner(System.in);

       System.out.println("Input a name:");
       name = scan.nextLine();
       System.out.println("The name is :"+name);

       System.out.println("Input a number:");
       number= scan.nextLine();
       System.out.println("The number is :"+number);

        
       System.out.printf("Input %s\'s age:\n",name);
       age= scan.nextInt();
       System.out.println("The age is :"+age);

       scan.useDelimiter("#");
       scan.nextLine();
       
       System.out.printf("Input mesage:\n");
       int tempint1, tempint2;
       System.out.println("Input 2 int");
       tempint1 = scan.nextInt();
       tempint2 = scan.nextInt();
       System.out.println( tempint1+tempint1);

       message= scan.nextLine();
       System.out.println("The message:"+message);
    }
}

